package java67_16;

import java67_15.dog.Dog;

public class Test4 {

	public static void main(String[] args) {
		TeacherGernate g = new TeacherGernate();
		Object o = g.generateTeacher(2, "老刘", "合肥中心");
		// o.giveLession();
		// 有可能不成功
//		KGCJavaTeacher j = (KGCJavaTeacher) o;
//		j.selfIntro();
//		j.giveLession();
//		j.workOnLinux();
		KGCDotNetTeacher dt = (KGCDotNetTeacher) o;
		dt.selfIntro();
		dt.giveLession();

//		Dog d = (Dog) null; 
//		System.out.println(d);

	}

}
